import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		canBannerChange: true,
		currentPage: 1,
		currentIndex: 1
	},
	mutations: {
		changeBanner(state, t) {
			state.canBannerChange = t.data
		},
		changeCurrentPage(state, t) {
			state.currentPage = t.data
		},
		changeCurrentIndex(state, t) {
			state.currentIndex = t.data
		}
	},
	actions: {},
	modules: {}
})
